<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'collectionOfGoods.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${staticPath }/static/bootstrap/bootstrap.min.css" />

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="${staticPath }/static/bootstrap/bootstrap-theme.min.css" />
</head>
<body>
	<div style="width:80%;  margin: 0 auto;margin-top:25px">
		<table class="table table-bordered">
			<tr class="info">
				<td>商品名称</td>
				<td>商品图片</td>
				<td>被收藏次数</td>
			</tr>
			<c:forEach items="${collectByItemIdList}" var="collectItem" varStatus="status">
				<tr>
					<td style="width:500px">${collectItem.itemName}</td>
					<td><img style="width:150px;margin:10px;" src="${collectItem.mainPic}"></td>
					<td>${collectItem.collectNum}</td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>
